package edu.ajou.scw;

import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.io.IOException;

import javax.imageio.ImageIO;

public class ImageMaker {
	
	public static void imageToFile(BufferedImage bi, String fileName)
	{
		try {
			FileOutputStream out = new FileOutputStream(fileName);
			ImageIO.write(bi, "png", out);
			out.close();
		}catch (IOException e) {
			e.printStackTrace();
		}
	}
}
